home *** CD-ROM | disk | FTP | other *** search
/ Champak 114 / Vol 114.iso / games / pico_2.swf / scripts / DefineSprite_93 / frame_1 / DoAction.as
Encoding:
Text File  |  2010-08-12  |  1.1 KB  |  43 lines

  1. function freshMe()
  2. {
  3.    delete this.arm1.onEnterFrame;
  4.    delete this.arm0.onEnterFrame;
  5.    if(_root.projtype == 1)
  6.    {
  7.       this.arm0._visible = false;
  8.       this.arm1.outline._visible = false;
  9.       this.arm1.col._visible = false;
  10.       this.zook._visible = true;
  11.       this.zook.onEnterFrame = function()
  12.       {
  13.          this._rotation = this._parent._parent._parent.aimer._rotation;
  14.       };
  15.    }
  16.    else
  17.    {
  18.       this.arm0._visible = true;
  19.       this.arm1.outline._visible = true;
  20.       this.arm1.col._visible = true;
  21.       this.zook._visible = false;
  22.       this.arm0.onEnterFrame = function()
  23.       {
  24.          this._rotation = this._parent._parent._parent.aimer._rotation;
  25.       };
  26.       if(_root.projtype == 0)
  27.       {
  28.          this.arm0.weaps.w0._visible = true;
  29.          this.arm0.weaps.w1._visible = false;
  30.       }
  31.       if(_root.projtype == 3)
  32.       {
  33.          this.arm0.weaps.w1._visible = true;
  34.          this.arm0.weaps.w0._visible = false;
  35.       }
  36.    }
  37.    this.arm1.onEnterFrame = function()
  38.    {
  39.       this._rotation = this._parent._parent._parent.aimer._rotation;
  40.    };
  41. }
  42. freshMe();
  43.